import service from '@/utils/request'

/*
 * @Author: zhouhx
 * @Description: 详情
 * @Date: 2022/10/14 15:17
 */
export const projectConfigApi = (id: number) => {
  return service.get('/gen/projectconfig/project/' + id)
}

/*
 * @Author: zhouhx
 * @Description: 修改/新增
 * @Date: 2022/10/14 15:17
 */
export const projectConfigSubmitApi = (dataForm: any) => {
  if (dataForm.id) {
    return service.put('/gen/projectconfig', dataForm)
  } else {
    return service.post('/gen/projectconfig', dataForm)
  }
}

/*
 * @Author: zhouhx
 * @Description: 分页
 * @Date: 2022/10/14 15:17
 */
export const projectConfigPageApi = () => {
  return service.get('/gen/projectconfig/page')
}
